import { Input, Typography } from 'antd';
import { FC } from 'react';
import { defaultProps, ComponentProps } from './interface';

const { Paragraph } = Typography;

const Compoment: FC<ComponentProps> = (props) => {
  const { title, placeholder } = { ...defaultProps, ...props };

  return (
    <div>
      <Paragraph strong>{title}</Paragraph>
      <Input placeholder={placeholder} />
    </div>
  );
};
export default Compoment;
